package com.ermaosk.juc;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Iterator;
import java.util.LinkedList;

/**
 * Created by admin
 * <p>
 * Date :2020/10/14
 * <p>
 * Description :
 * <p>
 * Version :1.0
 */
public class Queue {
    private static final Logger logger = LoggerFactory.getLogger(Queue.class);



    public static void main(String[] args) {
        LinkedList<String> playerList = new LinkedList();
        playerList.add("b");
        playerList.add("a");
        playerList.add("d");
        playerList.add("e");

        Iterator<String> iterator = playerList.iterator();

        while(iterator.hasNext()){
            logger.info(iterator.next());
        }

    }


}
